#pragma once
#include "Widget.h"

class Button : public Widget
{
public:
	Button(Widget* d, Topic t = NO_HELP_TOPIC);

	virtual void HandleHelp();
};


Button::Button(Widget* h, Topic t)
	: Widget(h, t)
{
}

void Button::HandleHelp()
{
	if (HasHelp()) {
		std::cout << "Button has help info.\n";
	}
	else {
		HelpHandler::HandleHelp();
	}
}
